package com.hxtec.polaris.controller;

import com.hxtec.polaris.model.ShopUserEntity;
import com.hxtec.polaris.service.ExpressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("express")
@CrossOrigin(allowCredentials="true")
@Api(value = "/express", tags = "快递查询")
public class ExpressController {
    private final ExpressService expressService;

    public ExpressController(ExpressService expressService) {
        this.expressService = expressService;
    }

    @GetMapping("/{id}")
    @ApiOperation(value = "查询订单物流")
    public String query(@PathVariable String id) {
        return expressService.query(id);
    }
}
